#include "messSocket.h"
#include <string.h>
#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    messSocket socket;
    socket.connectServe("192.168.38.128",8080,3000);
    Message message;
    message.content=(char*)"Augenstern";
    message.length=strlen(message.content);
    message.type=0;
    int len=socket.sendMag(&message,3000);
    cout<<"发送成功"<<endl;
    Message *mesTmp=socket.receiveMag(3000);
    cout<<"rect data:"<<mesTmp->content<<endl;
    return 0;
}
